package com.work.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.work.app.bean.ManageMenu;
import com.work.app.service.ManageMenuService;
import com.work.app.mapper.ManageMenuMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @description 针对表【manage_menu(业务管理端菜单)】的数据库操作Service实现
 * @Date 2024-05-14 12:06:15
 * @author hjj
 */
@Service
public class ManageMenuServiceImpl extends ServiceImpl<ManageMenuMapper, ManageMenu> implements ManageMenuService{
    private final ManageMenuMapper mapper;

    public ManageMenuServiceImpl(ManageMenuMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public List<ManageMenu> getSubMenusById(Integer id,Integer state) {
        return mapper.getSubMenusById(id,state);
    }

    @Override
    public List<ManageMenu> getMenusByState(Integer state) {
        return mapper.getMenusByState(state);
    }
}




